package com.jlect.swebing.ui.client.button;

import com.jlect.swebing.ui.client.ChangeListener;
import com.jlect.swebing.ui.client.Image;

/**
 * Button model interface. 
 * @author Sergey Kozmin
 * @since 11.11.2007 15:39:52
 */
public interface ButtonModel {
    public void setButtonText(String text);
    public String getButtonText();
    public void setButtonImage(Image image);
    public Image getButtonImage();

    public void setPressed(boolean pressed);
    public void setSelected(boolean selected);

    public boolean isPressed();
    public boolean isSelected();

    public void addChangeListener(ChangeListener listener);
    public void removeChangeListener(ChangeListener listener);
}
